


local command = {};

function command.now()
    
    return os.date("%Y-%m-%d %H:%M:%S");
end
function command.sleep(n)
    local t0 = os.clock()
    while os.clock() - t0 <= n do end
 end

function command.clock(time,func)
    
    while true do
        command.sleep(time);
        func();
    end
end

return command;